def lastSum(n):
    ans = 0
    for i in range(1,n+1):
        for j in range(1,i+1):
            ans+=j
    return ans
if __name__ == '__main__':
    print(lastSum(3))